
#ifndef WISHMASTER_DUMMYTHREADSTORAGE_H
#define WISHMASTER_DUMMYTHREADSTORAGE_H

#include "threadstorage.h"

namespace Wishmaster
{
	class DummyThreadStorage : public ThreadStorage
	{
	public:
		virtual bool storeThread(const QString& host, const QString& board, Thread* thread);
		virtual ThreadPtr restoreThread(Board* board, unsigned long thread_id, bool restorePosts = true);
		virtual bool restoreThread(Board* board, unsigned long thread_id, Thread* thread);

		virtual void deleteThread(unsigned long id);
		virtual void setMaxThreads(int max);

		virtual unsigned long thread(const QString& host, const QString& board, unsigned long thread_id);
		
		virtual unsigned long setThread(const ThreadEntry& entry);
		virtual ThreadEntry getThread(unsigned long thread_entry_id);

		virtual QList<unsigned long> threadList(const QString& host, const QString& board);
		virtual QList<unsigned long> threadList(const QString& host, const QString& board, uint32_t flags);

		virtual QList<unsigned long> deleteOldThreads(const QString& host, const QString& board);
	};
}

#endif

